package com.chatplus.application.domain.response.admin;

import com.chatplus.application.json.Int64AsString;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户会话查询响应
 *
 * @author chj
 * @date 2024/3/1
 **/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatItemQueryResponse implements Serializable {

    /**
     * username : 15302789406
     * user_id : 109
     * chat_id : 5bbaa978-8e5b-42b9-bb69-6b00a8cddd8f
     * title : Need to invoke method 'handleG...
     * model : gpt-3.5-turbo-16k
     * token : 2045
     * created_at : 1709191711
     * msg_num : 8
     */

    @JsonProperty("username")
    private String username;
    @JsonProperty("user_id")
    @JsonSerialize(using = Int64AsString.class)
    private Long userId;
    @JsonProperty("chat_id")
    private String chatId;
    @JsonProperty("title")
    private String title;
    @JsonProperty("model")
    private String model;
    @JsonProperty("token")
    private Long token;
    @JsonProperty("created_at")
    @JsonSerialize(using = Int64AsString.class)
    private Long createdAt;
    @JsonProperty("msg_num")
    private int msgNum;

}
